﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Messenger.ViewModels;
using System.Windows;
using CommunityToolkit.Mvvm.Messaging;
using Messenger.Models;

namespace Messenger.ViewModels
{
    class LogService
    {
        public async Task LoginAsync(string username, string password)
        {
            await Task.Delay(1000);
            var response = WeakReferenceMessenger.Default.Send(new LogSuccess(username,password)).Response.Result;
            MessageBox.Show(response);
        }
        
    }
}
